package com.hxzy.shop.fallback.store;

import com.github.pagehelper.PageInfo;
import com.hxzy.shop.common.dto.store.req.StoreListReq;
import com.hxzy.shop.common.dto.store.resp.SameCityDeliveryResp;
import com.hxzy.shop.common.dto.store.resp.StoreDetailResp;
import com.hxzy.shop.common.dto.store.resp.StoreListResp;
import com.hxzy.shop.common.dto.store.resp.StoreNumResp;
import com.hxzy.shop.entity.YxtCustomer;
import com.hxzy.shop.feign.store.StoreFeign;
import com.hxzy.shop.vo.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 功能描述：门店失败
 *
 * @author tonneyyy
 */
@Component
public class StoreFallback implements StoreFeign {
    @Override
    public Result<StoreNumResp> storeNum() {
        return Result.demotion();
    }

    @Override
    public Result<PageInfo<StoreListResp>> storeList(StoreListReq req) {
        return Result.demotion();
    }

    @Override
    public Result<StoreDetailResp> storeDetail(Long storeId) {
        return Result.demotion();
    }

    @Override
    public Result<SameCityDeliveryResp> checkSameCityDelivery(Long storeId) {
        return Result.demotion();
    }

    @Override
    public Result<List<YxtCustomer>> getTenantRedirectUrl() {
        return Result.demotion();
    }
}
